﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DMZS.BLL
{
    /// <summary>
    /// 通用类
    /// </summary>
    public class Common
    {
        private DMZS.DAL.Common dal = new DMZS.DAL.Common();

        /// <summary>
        /// 获取新单据编号
        /// </summary>
        /// <param name="orderType"></param>
        /// <returns></returns>
        public string GetCode(Model.DlyndxOrder.OrderType orderType)
        {
            return dal.GetCode(orderType);
        }

        /// <summary>
        /// 获取产品条码标签的最小值
        /// -1:失败
        /// </summary>
        /// <param name="ProductCode"></param>
        /// <param name="Date"></param>
        /// <param name="Dateformat"></param>
        /// <param name="Separator"></param>
        /// <param name="LengthOfSerialNmuber"></param>
        /// <returns></returns>
        public int GetBeginBarcodeNumber(string ProductCode, DateTime Date, string Dateformat, string Separator, int LengthOfSerialNmuber)
        {
            return dal.GetBeginBarcodeNumber(ProductCode, Date, Dateformat, Separator, LengthOfSerialNmuber);
        }
       
    }
}
